package com.clubs.coding.model.dao;

import com.clubs.coding.model.pojo.Learning;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LearningMapper {
    int deleteByPrimaryKey(Integer learningId);

    int insert(Learning record);

    int insertSelective(Learning record);

    Learning selectByPrimaryKey(Integer learningId);

    int updateByPrimaryKeySelective(Learning record);

    int updateByPrimaryKey(Learning record);
    int deleteByopenidAndMakeId(String openid,Integer applicationId);
    List<Learning> selectByOpenid(String openid);
    List<Learning> selectBycount(String openid);
    List<Learning> selectAll(@Param(value = "type")Integer type);
}